
<center>
<br/><br/><br/><br/>
 <form action="<?php $_SERVER["PHP_SELF"]?>" method="post" >
 <table>
       <tr>
          <td>
     <SELECT NAME="categoryMenu">
<?php	
	//vasilis: afto to komati prepei na metaferthei sto DAL
	include("Libraries/Dal/DB_Access.php");
	$=get_categories();
	echo $gresult\();
	// syndiasmos 2 methodon apikwnisis html kai php		
	while($arrayRow = mysql_fetch_assoc($result)) 
	{
		$strA = $arrayRow["category_id"];
		$strB = $arrayRow["category"];
		echo "<option value=\"".$strA."\">".$strB."</option>";
	}
?>
	</select>
   </td>
     </tr>
    <tr>
        <td colspan=3 align=center>          
            <input type="submit" value="Show List">
        </td>
    </tr>   
</table>
 </form>
 
 <?php 
                include("Libraries/BusinessLogic/games.php");
           
		   		if(isset($_POST["categoryMenu"]))
				{
					$category=$_POST["categoryMenu"];
					echo $category;
                }  
 ?>